/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practicados;

import java.util.Date;

/**
 *
 * @author Ricardo Yepes
 */
public class Person {

    /** The identity number of the person. */
    private Integer identity;

    /** The name of the person. */
    private String name;

    /** The last name of the person. */
    private String lastName;

    /** The age of the person. */
    private Integer age;

    /** The birth date of the person. */
    private Date birthDate;


    /**
     * Unique constructor of the class.
     * @param identityValue the identity to set
     * @param nameValue the name to set
     * @param lastNameValue the last name to set
     * @param ageValue the age to set
     */
    public Person(final Integer identityValue, final String nameValue,
            final String lastNameValue, final Integer ageValue) {
        this.identity = identityValue;
        this.name = nameValue;
        this.lastName = lastNameValue;
        this.age = ageValue;
    }

    public String toString(){
        return this.getIdentity() + ", " + this.getName() + ", " + this.getLastName() + ", "
                + this.getAge() + ", " + this.getBirthDate();
    }

    /**
     * @return the identity
     */
    public final Integer getIdentity() {
        return identity;
    }

    /**
     * @param identityValue the identity to set
     */
    public final void setIdentity(final Integer identityValue) {
        this.identity = identityValue;
    }

    /**
     * @return the name
     */
    public final String getName() {
        return name;
    }

    /**
     * @param nameValue the name to set
     */
    public final void setName(final String nameValue) {
        this.name = nameValue;
    }

    /**
     * @return the last name
     */
    public final String getLastName() {
        return lastName;
    }

    /**
     * @param lastNameValue the last name to set
     */
    public final void setLastName(final String lastNameValue) {
        this.lastName = lastNameValue;
    }

    /**
     * @return the age
     */
    public final Integer getAge() {
        return age;
    }

    /**
     * @param ageValue the age to set
     */
    public final void setAge(final Integer ageValue) {
        this.age = ageValue;
    }

    /**
     * @return the birthDate
     */
    public final Date getBirthDate() {
        return birthDate;
    }

    /**
     * @param birthDateValue the birthDate to set
     */
    public final void setBirthDate(final Date birthDateValue) {
        this.birthDate = birthDateValue;
    }


}
